package com.chagee.store.operation.api.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Objects;

/**
 * 任务连续验收情况
 * @Author : hk
 * @Date : 2025/1/6
 */

@Getter
@AllArgsConstructor
public enum OrderTaskAcceptanceEnum {

	PASS("PASS", "合格"),
	NO_PASS("NO_PASS", "不合格"),
	APPEAL_REJECTED("APPEAL_REJECTED", "申诉失败"),

	;

	private final String type;
	private final String desc;


	public static OrderTaskAcceptanceEnum queryByType(String type) {
		for (OrderTaskAcceptanceEnum value : values()) {
			if (Objects.equals(type, value.getType())) {
				return value;
			}
		}
		return null;
	}
}
